<?php
class RestController extends Zend_Controller_Action 
{
    
    public function indexAction()
    {
        Zend::loadClass('Zend_Service_Rest');
        
        $service = new Zend_Service_Rest();
        
        print_r($this->_getAllParams());
        
        $service->setUri('http://dp2.syopalahti.no-ip.org');
        
        $service->getHttpClient()->setHeaders('Z-Response-Type', 'Z-XML');
                        
        $response = $service->restPut('/dictator/' . $this->_getParam('id'), array('pasche' => 'paske'));
                
        print_r($response);
        
               
        
    }
        
    public function findAction()
    {

    }
    
}